package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

public class PayOrderCreateReq extends BaseEntity {

    @NotBlank(message = "商品标题不能为空")
    private String subject;

    @NotBlank(message = "商品描述不能为空")
    private String body;

    @NotNull(message = "支付金额不能为空")
    private BigDecimal amount;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @NotBlank(message = "openid不能为空")
    private String openid;

    // Getter 和 Setter
    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}
